import {defineComponent} from "vue";

export default defineComponent({
    props:{
        showImage:{
            type:Boolean,
            defaults:false
        },
        imgSrc:{
            type:Array,
            defaults: "https://tangjiusheng.com/d/file/image/20220301/1646116516905406.png"
        }

    },
    setup(props){
        return (props)=>{
            return (
                <>
                    <el-dialog v-model={props.showImage}>
                        <img style={{width: '100%'}}
                             src={props.imgSrc}
                             alt="Preview Image"/>
                    </el-dialog>
                </>
            )
        }
    }
})